
<h1>Create Salesman</h1>
<p align="justify">Please enter the salesman's information below.</p>

<div id="infoMessage"><?php echo $message;?></div>

<?php echo form_open("people/salesman/create_salesman");?>

     <table width="60%" align="center" class="table-condensed">  
        <tr> <td><b>  First Name: </b></td>
            <td><?php echo form_input($first_name);?></td>
        </tr>  
      	<tr> <td><b>  Last Name: </b></td>
            <td><?php echo form_input($last_name);?></td>
        </tr>  
      
        
        
        <tr>
         <td> <b>Branch:</b> </td>
         <td>   <?php 
	 	$bl[0] = "";
	   		foreach($branches as $branch){
				$bl[$branch->id] = $branch->name;
			}
			echo form_dropdown('id_branch', $bl, '', 'class="chzn-select" data-placeholder="Choose a Branch" style="width:220px;"');  ?>
	</td>
    </tr>
	 <tr>
         <td> <b> Password: </b></td>
          <td> <?php echo form_input($password);?></td>
      </tr>

      <tr>
            <td><b>Confirm Password:</b> </td>
       	   <td>  <?php echo form_input($password_confirm);?></td>
      </tr>

      
      <tr> 
     	  <td> <b>Phone Number:</b> </td>
    	  <td><?php echo form_input($phone_no);?></td>
     </tr>   
      
      <tr> 
     	  <td> <b>Email Address:</b> </td>
    	  <td><?php echo form_input($email);?></td>
     </tr>   
      <tr> 
     	  <td> <b>Address:</b> </td>
    	  <td>  <?php echo form_textarea($address, '', 'style="height : 50px;"');?></td>
     </tr>   
      
        
<tr><td>&nbsp;</td> <td><?php echo form_submit('submit', 'Add salesman', 'class="btn btn-success"');?></td></tr>
</table>
<?php echo form_close();?>
